.container {
  max-width: 400px;
  margin: 50px auto;
  padding: 2rem;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.button {
  padding: 0.8rem;
  background-color: #0070f3;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.button:hover:not(:disabled) {
  background-color: #0051aa;
}

.button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.error {
  color: #dc2626;
  text-align: center;
  margin: 0.5rem 0 0;
}

.or {
  text-align: center;
  margin: 1.5rem 0;
  color: #666;
}

.link {
  display: block;
  text-align: center;
  color: #0070f3;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* 密码容器（包含输入框和切换按钮） */
.passwordContainer {
  position: relative;
  display: flex;
  align-items: center;
}

/* 密码可见性切换按钮 */
.toggleBtn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #0070f3;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.2rem;
}

.toggleBtn:hover {
  text-decoration: underline;
}

/* 错误提示样式（已有可忽略） */
.errorTip {
  color: #dc2626;
  font-size: 0.8rem;
  margin: 0.2rem 0 0.8rem 0;
  height: 1rem;
}

.forgotLinkContainer {
  margin-top: 1rem;
  text-align: center;
}

.forgotLink {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.9rem;
}

.forgotLink:hover {
  text-decoration: underline;
}